/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package web.mail.client;

import com.extjs.gxt.ui.client.widget.Component;

import com.extjs.gxt.ui.client.widget.menu.Menu;


import com.google.gwt.user.client.ui.AbstractImagePrototype;

import web.app.client.Module;
import web.mail.client.resources.Resources;

/**
 *
 * @author michael
 */
public class MailModule implements Module {

    private MailController mailController;

    public MailModule() {
    }

    public String getName() {
        return "mail";
    }

    public AbstractImagePrototype getIcon() {
        return Resources.ICONS.mail48x48();
    }

    public Menu getMenu() {
        return null;
    }


    public Component getUI() {
        if(mailController == null)
            mailController = new MailController();
        return mailController.getUI();
    }


}
